﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="test1.aspx.cs" Inherits="NetCMS.Web.test1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
  <%
      ServerOS = Environment.OSVersion.ToString(); //操作系统：
  CpuSum = Environment.GetEnvironmentVariable("NUMBER_OF_PROCESSORS"); //CPU个数：
  CpuType = Environment.GetEnvironmentVariable("PROCESSOR_IDENTIFIER"); //CPU类型：
  ServerSoft = Request.ServerVariables["SERVER_SOFTWARE"]; //信息服务软件：
  MachineName = Server.MachineName; //服务器名
  ServerName = Request.ServerVariables["SERVER_NAME"]; //服务器域名
  ServerPath = Request.ServerVariables["APPL_PHYSICAL_PATH"]; //虚拟服务绝对路径
  ServerNet = ".NET CLR " + Environment.Version.ToString(); //DotNET 版本
  ServerArea = (DateTime.Now - DateTime.UtcNow).TotalHours > 0 ? "+" + (DateTime.Now - DateTime.UtcNow).TotalHours.ToString() : (DateTime.Now - DateTime.UtcNow).TotalHours.ToString(); //服务器时区
  ServerTimeOut = Server.ScriptTimeout.ToString(); //脚本超时时间
  ServerStart = ((Double)System.Environment.TickCount / 3600000).ToString("N2"); //开机运行时长
  PrStart = GetPrStart(); //进程开始时间
  AspNetN = GetAspNetN(); //AspNet 内存占用
  AspNetCpu = GetAspNetCpu(); //AspNet CPU时间
  ServerSessions = Session.Contents.Count.ToString(); // ssion总数
  ServerApp = Application.Contents.Count.ToString(); //Application总数
  ServerCache = Cache.Count.ToString(); //应用程序缓存总数
  ServerAppN = GetServerAppN(); //应用程序占用内存
  ServerFso = Check("Scripting.FileSystemObject"); //FSO 文本文件读写
  ServerTimeOut = Server.ScriptTimeout.ToString() + "毫秒"; //本页执行时间  

      
       %>
        
        
        
         
        <asp:TextBox ID="TextBox1" runat="server" Height="345px" TextMode="MultiLine" 
            Width="1056px"></asp:TextBox>
    </div>
    <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" />
    </form>
</body>
</html>
